package org.windey.server;

/**
 * 
 * 
 *
 */
public class ConnectThread extends Thread
{
	/**
	 * 
	 */
	private int listenPort;
	/**
	 * 
	 */
	private WindeyServer server;
	/**
	 * 
	 */
	private boolean run;
	
	/**
	 * 
	 * @param port
	 * @param server
	 */
	public ConnectThread(int port, WindeyServer server)
	{
		super("WindeyServerConnectThread");
		this.listenPort = port;
		this.server = server;
		this.run = true;
	}
	
	/**
	 * 
	 * @return
	 */
	public boolean getRunning()
	{
		return run;
	}
	
	/**
	 * 
	 * @param running
	 */
	public synchronized void setRunning(boolean running)
	{
		run = running;
	}

	/*public void setListenPort(int listenPort) {
		this.listenPort = listenPort;
	}*/

	/**
	 * 
	 */
	public int getListenPort() {
		return listenPort;
	}

	/*public void setServer(WindeyServer server) {
		this.server = server;
	}*/

	/**
	 * 
	 */
	public WindeyServer getServer() {
		return server;
	}
}
